package net.sppan.base.service.impl;

import net.sppan.base.dao.IEmployeeDao;
import net.sppan.base.dao.IRepairRecordDao;
import net.sppan.base.entity.Employee;
import net.sppan.base.entity.business.RepairRecord;
import net.sppan.base.service.EmployeeService;
import net.sppan.base.service.IRepairRecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Pageable;
import org.springframework.stereotype.Service;

import java.util.List;

/** 
 * @Description: 维修
 * @Param:  
 * @return:  
 * @Author:
 */
@Service
public class RepairRecordServiceImpl implements IRepairRecordService {

	@Autowired
    private IRepairRecordDao iRepairRecordDao;

	@Override
	public List<RepairRecord> getRepairRecord() {
		return iRepairRecordDao.getRepairRecord();
	}

	@Override
	public int saveRepairRecord(RepairRecord repairRecord) {
		return iRepairRecordDao.saveRepairRecord(repairRecord);
	}

	@Override
	public int updateStatus(Long id, Integer status) {
		return iRepairRecordDao.updateStatus(id,status);
	}

	@Override
	public int delete(Long id) {
		return iRepairRecordDao.delete(id);
	}
}
